<style tyle="text/css">
    .mt10 {
      margin-top: 10px
    }
    .dropdown-menu .p5_15:hover {
      background-color: #edf1f2 !important;
      background-image: none;
      filter: none;
      cursor: pointer;
    }
    .p5_15 {
      padding: 5px 15px;
    }
    .dropdown-btn {
      float: left;
      margin-top: 3px;
    }
    .dropdown-menu li {
      white-space: nowrap;
    }
    .quick-btn {
      padding-top: 8px;
    }
    .font-color {
      color: #428bca;
    }
    .red_font {
      color: #f00;
    }
    .chechbox-style {
      width: 14px;
      font-size: 17px;
      padding-top: 1px;
    }
    .role_style {
      margin-bottom:2px;
      margin-right:5px;
      width:110px;
    }
    .yuio {
      padding-bottom: 5px;
      padding-top: 0px;
      padding-left: 0px;
    }
  </style>

<div class="modal-header">
    <h4 class="modal-title">订单分润</h4>
</div>
<div class="modal-body">

    <form name="form" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
        <div class="panel-body">
            <table class="table table-striped table-bordered dataTable table-condensed tree_table" style="table-layout:fixed">
                <thead>
                    <tr>
                        <th class="col-md-1 text-center">用户头像</th>
                        <th class="col-md-1 text-center">用户昵称</th>
                        <!-- <th class="col-md-1 text-center">分销商/编号</th> -->
                        <th class="col-md-1 text-center">
                            <div class="dropdown-btn">收益类型</div>
                            <div class="btn-group dropdown" dropdown="" ng-class="{'open': filters.open1}">
                                <button class="btn btn-default btn-xs" style="width: 24px;" ng-click="filters.open1 = !filters.open1 ; filters.open2 = false">
                                  <i class="fa fa-filter" ng-show="!filters.open1"/>
                                  <i class="glyphicon glyphicon-filter" ng-show="filters.open1"/>
                                </button>
                                <ul class="dropdown-menu " >
                                  <li class="p5_15" ng-click="filterType(item)" ng-repeat="item in filters.list1">
                                    <i class="fa fa-check-square chechbox-style" ng-show="item.show"/>
                                    <i class="fa fa-square-o chechbox-style" ng-show="!item.show"/> {{item.label}}
                                  </li>
                                  <li class="text-center" style="padding-top: 3px">
                                    <button class="btn btn-default btn-xs" style="margin-right: 3px" ng-click="selectFlag(filters.list1, true)">全选</button>
                                    <button class="btn btn-default btn-xs" style="margin-right: 3px" ng-click="selectFlag(filters.list1, false)">清空</button>
                                    <button class="btn btn-default btn-xs" ng-click="filters.open1 = false">关闭</button>
                                  </li>
                                </ul>
                              </div>

                        </th>
                        <th class="col-md-1 text-center">数量</th>
                        <th class="col-md-1 text-center">本次变动总金额</th>
                        <th class="col-md-1 text-center"> <div class="dropdown-btn">金额类型</div>
                            <div class="btn-group dropdown" dropdown="" ng-class="{'open': filters.open2}">
                                <button class="btn btn-default btn-xs" style="width: 24px;" ng-click="filters.open2 = !filters.open2 ; filters.open1 = false">
                                  <i class="fa fa-filter" ng-show="!filters.open2"/>
                                  <i class="glyphicon glyphicon-filter" ng-show="filters.open2"/>
                                </button>
                                <ul class="dropdown-menu " >
                                  <li class="p5_15" ng-click="filterType1(item)" ng-repeat="item in filters.list2">
                                    <i class="fa fa-check-square chechbox-style" ng-show="item.show"/>
                                    <i class="fa fa-square-o chechbox-style" ng-show="!item.show"/> {{item.label}}
                                  </li>
                                  <li class="text-center" style="padding-top: 3px">
                                    <button class="btn btn-default btn-xs" style="margin-right: 3px" ng-click="selectFlag1(filters.list2, true)">全选</button>
                                    <button class="btn btn-default btn-xs" style="margin-right: 3px" ng-click="selectFlag1(filters.list2, false)">清空</button>
                                    <button class="btn btn-default btn-xs" ng-click="filters.open2 = false">关闭</button>
                                  </li>
                                </ul>
                              </div>
                            </th>
                        <th class="col-md-1 text-center">分润级别</th>
                        <!-- <th class="col-md-1 text-center">变动前金额</th>
                        <th class="col-md-1 text-center">变动后金额</th> -->
                        <th class="col-md-1 text-center">订单类型</th>
                        <th class="col-md-1 text-center">产生时间</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="bean in beanList | filter : {'show': true}">
                        <td class="text-center">
                                <img ng-src="{{bean.headimg}}" alt="用户头像" class="" style="border-radius:100px" width="50px" height="50px">
                            <!-- <img src="{{bean.headimg}}" alt="用户头像" width="120px" height="120px"> -->
                        </td>
                        <td class="text-center">
                            {{bean.nickname}}
                        </td>
                        <!-- <td class="">
                            {{bean.company_code}}
                            <br> {{bean.company_name}}
                        </td> -->
                        <td class="text-center">
                            <span ng-show="bean.price_type=='actual'" class="form-control-static">实际收益</span>
                            <span ng-show="bean.price_type=='estimate'" class="form-control-static">预计收益</span>
                        </td>
                        <td class="text-center">
                            <span>{{bean.order_used_num}}</span>
                        </td>
                        <!-- <td class="text-center">
                            ￥{{bean.track_price_one}}
                        </td> -->
                        <td class="text-center">
                            ￥{{(bean.track_price*0.01).toFixed(2)}}
                        </td>
                        <td class="text-center">
                            <span ng-show="bean.track_type=='sale_profit'" class="form-control-static">分销利润</span>
                            <span ng-show="bean.track_type=='shop_profit'" class="form-control-static">店铺利润</span>
                            <span ng-show="bean.track_type=='shop_cost'" class="form-control-static">店铺成本</span>
                            <span ng-show="bean.track_type=='shop_charge'" class="form-control-static">店铺手续费</span>
                        </td>
                        <td class="text-center">
                            {{bean.track_level}}
                        </td>
                        <!-- <td class="text-center">
                            ￥{{bean.before_track_price}}
                        </td>
                        <td class="text-center">
                            ￥{{bean.after_trace_price}}
                        </td> -->
                        <td class="text-center">
                            <span ng-show="bean.order_fans_type=='share'" class="form-control-static">分享订单</span>
                            <span ng-show="bean.order_fans_type=='first_fans'" class="form-control-static">死粉订单</span>
                        </td>
                        <td class="text-center">
                            {{bean.create_time}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </form>

</div>

<div class="modal-footer">
    <button class="btn btn-success" type="button" ng-click="ok()">确定</button>
    <button class="btn btn-danger" type="button" ng-click="close()">关闭</button>
</div>